package com.dy.details.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface ShoppingCarMapper extends BaseMapper<Orders> {
    @Select("<script>"+
            "SELECT * FROM orders where zt=0 and gstatus=1"+
            "</script>")
    List<Orders> findAll();


    @Update("update orders set status='已完成' where id=#{id}")
    void updatestatus(Orders orders);
}
